package cn.bs.busuo.account.dao.persist.mapper;

import cn.bs.busuo.account.pojo.entity.UserRole;
import cn.bs.busuo.account.pojo.param.SetAdminParam;
import cn.bs.busuo.account.pojo.vo.AdminUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {
    int selectUserRoleIfExits(SetAdminParam setAdminParam);

    int deleteByUserIdAndRoleID(SetAdminParam setAdminParam);

    List<AdminUserVO> adminList();
//    int deleteByUserId(Long id);
}
